package com.tgu.home_action.pojo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;


import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;

@Data
@ApiModel(description = "志愿者-案件")
public class VolunteerCase implements Serializable {
    @ApiModelProperty("关联表ID")
    private Integer id;
    @ApiModelProperty("志愿者ID")
    private Integer volunteerId;
    @NotNull(message = "caseId不能为空")
    @ApiModelProperty("案件ID")
    private Integer caseId;
    @ApiModelProperty("志愿者")
    private Volunteer volunteer;
    @Min(value = 1, message = "state只能是1-3")
    @Max(value = 3, message = "state只能是1-3")
    @ApiModelProperty("状态（1为接受，2为拒绝，3为退出）")
    private Short state;
    @ApiModelProperty("交通工具")
    private String traffic;
    @ApiModelProperty("装备是否齐全，1为齐全，2为不齐全")
    private Short equipment;
    @ApiModelProperty("创建时间")
    private Timestamp createAt;
}
